package com.fesine.ch01.lesson06.extthread;

/**
 * Created by Fesine on 2016/6/26.
 */
public class Run {
    public static void main(String[] args) {
        CountOperate c = new CountOperate();//启动main线程
        Thread t = new Thread(c);
        System.out.println("main begin t isAlive=" + t.isAlive());
        System.out.println("--------1111" );
        t.setName("A");
        t.start();//启动A线程
        System.out.println("--------2222");
        System.out.println("main end t isAlive=" + t.isAlive());
        //c.start();//启动Thread-0线程
    }
}
